// goods 商品管理模块路由
import Goods from '@/pages/goods'
import GoodsList from '@/pages/goods/goods-list'
import GoodsCategory from '@/pages/goods/goods-category'
import GoodsAttr from '@/pages/goods/goods-attr'

const goodsRoutes = {
  path: '/dashboard/goods',
  component: Goods,
  redirect: '/dashboard/goods/list',
  children: [
    {
      path: '/dashboard/goods/list',
      component: GoodsList
    },
    {
      path: '/dashboard/goods/category',
      component: GoodsCategory
    },
    {
      path: '/dashboard/goods/attr',
      component: GoodsAttr
    }
  ]
}

export default goodsRoutes
